package org.leo.dm.component.engine;

import org.leo.dm.common.bean.Constants;
import org.leo.dm.component.base.IStorage;
import org.leo.dm.component.reader.Reader;
import org.leo.dm.component.writer.Writer;

/**
 * 
 * Created on 2016年2月17日
 * <p>
 * Description 引擎抽象类
 * <p>
 * Copyright neusoft (c) 2015 .
 * 
 * @author xiao_h
 *
 */
public abstract class Storage implements Constants, IStorage {

	/**
	 * 引擎名称 默认值
	 */
	private String storageName = "defaultStorage";

	private Reader reader;
	private Writer writer;

	public Reader getReader() {
		return reader;
	}

	public void setReader(Reader reader) {
		this.reader = reader;
		this.reader.setStorage(this);
	}

	public Writer getWriter() {
		return writer;
	}

	public void setWriter(Writer writer) {
		this.writer = writer;
		this.writer.setStorage(this);
	}

	public String getStorageName() {
		return storageName;
	}

	public void setStorageName(String storageName) {
		this.storageName = storageName;
	}

}
